﻿import request from '/@/utils/request';
enum Api {
 
  PageDeviceSlaveTemplatePointsValue = '/api/deviceSlaveTemplatePointsValue/page',
  ReadPointValue = '/api/deviceSlaveTemplatePointsValue/readPointValue',
  WritePointValue = '/api/deviceSlaveTemplatePointsValue/writePointValue',
  GetDeviceCurrentState = '/api/deviceSlaveTemplatePointsValue/getDeviceCurrentState',
 
}





// 分页查询从机变量
export const pageDeviceSlaveTemplatePointsValue = (params?: any) => 
	request({
			url: Api.PageDeviceSlaveTemplatePointsValue,
			method: 'post',
			data: params,
		});
// 分页查询从机变量
export const ReadPointValue = (params?: any) => 
	request({
			url: Api.ReadPointValue,
			method: 'post',
			data: params,
		});
//写入从机变量
export const WritePointValue = (params?: any) => 
	request({
			url: Api.WritePointValue,
			method: 'post',
			data: params,
		});		
export const getDeviceCurrentState = (params?: any) => 
			request({
					url: Api.GetDeviceCurrentState,
					method: 'post',
					data: params,
				});
		





